const logger = require('log4js').getLogger()

module.exports = (req, res) => {
    require('../util/service').handlePost(req, res, (reqObj, resolve) => {
        reqObj.urls && reqObj.urls.forEach(item => {
            require('../mng/chromeServerMng').add({
                url: item,
                priority: reqObj.priority || 0
            })
        })
        resolve({})
    })
}